﻿#define _CRT_SECURE_NO_WARNINGS
#include<iostream>
#include<cstdio>
using namespace std;

typedef long long LL;

int main()
{
	LL T;
	scanf("%lld", &T);
	while (T--)
	{
		LL a, b, d;
		scanf("%lld %lld %lld", &a, &b, &d);
		LL div = b / a;
		if (div > d - 1 || (div == d - 1) && (b % a))
		{
			printf("Yes\n");
		}
		else
		{
			printf("No\n");
		}
	}
	return 0;
}